package dk.ihk.shopular.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShoppingList {
	private String name;
	private boolean isActive;
	Date created = new Date();
	Date allChecked = new Date();
	private List<ShoppingItem> items = new ArrayList<ShoppingItem>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isActive() {
		return isActive;
	}
	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getAllChecked() {
		return allChecked;
	}
	public void setAllChecked(Date allChecked) {
		this.allChecked = allChecked;
	}
	
	public void addItem(ShoppingItem item) {
		items.add(item);
	}
	
	public List<ShoppingItem> getItems() {
		return items;
	}
	
	//add item to this list
	//remove item
	//check item
	//set all checked
	
	
	
}
